package testreview;
class Superman extends Rperson{
	public Superman(){
		super("Tom", "male", 20);
	}
	public void change(String name){
		super.name=name;
	}
}
//class Gman extends Rperson{
//	int height;
//}
public class Rperson{
	 String name;
	 String sex;
	private int    age;
	public Rperson(){
		//this("Bob","male",18);
	}
	public Rperson(String name){
		this.name=name;
	}
	public Rperson(String name,String sex,int age){
		this.name=name;
		this.sex=sex;
		this.age=age;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
}
